<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
 * Product Object
 */
class ProductObject
{
	private $_id;
	private $_productType;
	private $_branch; // BranchObject
	private $_description;
	private $_price;
	private $_marks; // List of SpecialMarkObject
	private $_image;
	private $_name;
	private $_promotion;

	function __construct($id = -1, $productType = NULL, $branch = NULL, $description = NULL, $price = 0.0, $marks = array(), $image = NULL, $name = NULL, $promotion = FALSE)
	{
		$this->_id = $id;
		$this->_productType = $productType;
		$this->_branch = $branch;
		$this->_description = $description;
		$this->_price = $price;
		$this->_marks = $marks;
		$this->_image = $image;
		$this->_name = $name;
		$this->_promotion = $promotion;
	}
	
	public function getId()
	{
		return $this->_id;
	}
	
	public function setId($id)
	{
		$this->_id = $id;
	}
	
	public function getProductType()
	{
		return $this->_productType;
	}
	
	public function setProductType($productType)
	{
		$this->_productType = $productType;
	}
	
	public function getBranch()
	{
		return $this->_branch;
	}
	
	public function setBranch($branch)
	{
		$this->_branch = $branch;
	}
	
	public function getDescription()
	{
		return quotes_to_entities($this->_description);
	}
	
	public function setDescription($desc)
	{
		$this->_description = quotes_to_entities($desc);
	}
	
	public function getPrice()
	{
		return $this->_price;
	}
	
	public function setPrice($price)
	{
		$this->_price = $price;
	}
	
	public function getMarks()
	{
		return $this->_marks;
	}
	
	public function setMarks($marks)
	{
		$this->_marks = $marks;
	}
	
	public function getImage()
	{
		return $this->_image;
	}
	
	public function setImage($image)
	{
		$this->_image = $image;
	}
	
	public function getName()
	{
		return quotes_to_entities($this->_name);
	}
	
	public function setName($name)
	{
		$this->_name = quotes_to_entities($name);
	}
	
	public function isPromotion()
	{
		return $this->_promotion;
	}
	
	public function setPromotion($promotion)
	{
		$this->_promotion = $promotion;
	}
}


?>